
package CMPRegistration;

import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;


/**
 * This is the local-home interface for Registration enterprise bean.
 */
public interface RegistrationLocalHome extends EJBLocalHome {
    
    RegistrationLocal findByPrimaryKey(Integer key)  throws FinderException;

    public RegistrationLocal create(Integer id, String password, String login, int user, UserregistLocal userregistBean) throws CreateException;

    /**
     * 
     */
    Collection findById(Integer id) throws FinderException;

    /**
     * 
     */
    Collection findByPassword(String password) throws FinderException;

    /**
     * 
     */
    Collection findByLogin(String login) throws FinderException;

    /**
     * 
     */
    Collection findByUser(int user) throws FinderException;

    Collection findByAll() throws javax.ejb.FinderException;
    
    
}
